package com.ovopark.firecar.manager

import com.ovopark.firecar.bean.UserBean

class UserCacheManager {
    var user : UserBean = UserBean()

    fun setUsers(userBean : UserBean){
        user = userBean
    }

    fun getUsers() : UserBean{
        return user
    }

    companion object{
        var userCacheManager : UserCacheManager? = null
        fun getInstance() : UserCacheManager?{
            synchronized(UserCacheManager::class.java){
                if (userCacheManager ==null){
                    userCacheManager = UserCacheManager()
                }
                return userCacheManager

            }
        }
    }
}